package com.biz.primus.ms.promotion.dao.po;

import com.biz.primus.ms.base.jpa.po.BaseEntity;
import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import lombok.Getter;
import lombok.Setter;

/**
 * @author david-liu
 */
@Getter
@Setter
@Entity(name = "pmt_presell_product")
public class PresellProduct extends BaseEntity {
    private static final long serialVersionUID = 8562310159433251763L;

    @JoinColumn(name = "presell_promotion_id")
    @ManyToOne
    private PresellPromotion presellPromotion;

    /**
     * 参与预售活动的ID
     */
    private Long productId;

    /**
     * 预售商品总量
     */
    private Integer presellQuantity;

    /**
     * 限购数量
     */
    private Integer purchaseLimit;

    /**
     * 预售价
     */
    private Integer presellPrice;

    /**
     * 参与人数
     */
    private Integer participateMemberCount;
}
